MATLAB File Help: perm View code for perm Default Topics
perm
 perm Permutations in Sn
 
 for example, sigma=perm({[1 24 20],[2 14 9],[3 11 13],[4 18 23],[5 21 17],[6 7 10],[8 16 12],[15 19 22]});
 
 perm Properties:
    list - the permutation as a list of the outputs from inputs 1,..,n
    cycles - the permutation as a cell array of vectors representing
        cycles
    n - the size of the set the permutation acts on
    numCycles - the number of cycles in the permutation
 
 perm Methods:
    perm - construct a permutation object given a permutation in list or cycle
        form
    char - output permutation as string of cycles
    disp - display permutation as string of cycles
    mtimes - multiply permutations left to right
    mpower - raise permutation to integer power
    action - act permutation on element of {1,..,n}
    subsref - act permutation on element of {1,..,n} using function
        notation
    end - used for last index in list
Class Details
Sealed false
Construct on load false
Constructor Summary
perm Construct a permutation object given a permutation in list or cycle form 
Property Summary
cycles permutation as a cell array of vectors representing cycles 
list permutation as a list of the outputs from inputs 1,..,n 
n the size of the set the permutation acts on 
numCycles the number of cycles in the permutation 
Method Summary
  action Act permutation on element of {1,..,n} 
  char Permutation as string of cycles 
  disp Display permutation as string of cycles 
  end Last index 
  mpower Raise permutation to integer power 
  mtimes Multiply elements of Sn from left to right 
  subsref Subscripted reference